package com.lzh.tiktok.user.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author lizhihang
 * @create 2023-01-17 15:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FollowResponseVo {
    /**
     * 状态码，0是成功 其他值是失败
     */
    private String status_code;
    /**
     * 状态描述
     */
    private String status_msg;

    private List<UserVo> user_list;

    public static FollowResponseVo sucess(List<UserVo> user_list) {
        FollowResponseVo followResponseVo = new FollowResponseVo("0", "成功", user_list);
        return followResponseVo;
    }

    public static FollowResponseVo fail() {
        FollowResponseVo followResponseVo = new FollowResponseVo("-1", "失败", null);
        return followResponseVo;
    }
}
